package com.freesky.biz.activity.service;

import com.freesky.biz.activity.domain.TSettlement;
import com.freesky.biz.activity.domain.TSettlementDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 结算管理 服务层
 *
 * @author freesky
 */
public interface ISettlementService {

    public TSettlement get(String id);

    public List<TSettlement> findList(TSettlement entity);

    public int insert(TSettlement entity);

    public int update(TSettlement entity);

    public int updateCouponExpenseAmount(String settleId);
    public int updateAlipayExpenseAmount(String settleId);


    public int deleteByIds(String[] ids);

    public boolean checkSettleNameUnique(TSettlement entity);

    public List<TSettlementDetail> findSettlementDetailList(TSettlementDetail entity);

    public int updateSettlementById(String fileUrl, String updateBy,String settleId);

    public int batchAddSettlementDetail(List<TSettlementDetail> settlementDetailList);
}
